home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text;
-
- import java.awt.event.ActionEvent;
-
- class DefaultEditorKit$BeginAction extends TextAction {
- private boolean select;
-
- DefaultEditorKit$BeginAction(String var1, boolean var2) {
- super(var1);
- this.select = var2;
- }
-
- public void actionPerformed(ActionEvent var1) {
- JTextComponent var2 = ((TextAction)this).getTextComponent(var1);
- if (var2 != null) {
- if (this.select) {
- var2.moveCaretPosition(0);
- } else {
- var2.setCaretPosition(0);
- }
- }
-
- }
- }
-